/**
 * 
 */
package ro.dta.idbi.model;

import ro.dta.idbi.interfaces.IMemento;

/**
 * Memento for the transformations, used to revert to a previous state after
 * the application of a transformation
 * 
 * @author Tudor Dobrila
 * 
 */
public class Memento implements IMemento {
	/**
	 * Name of the original schema
	 */
	private String originalSchema;

	/**
	 * Command applied over the original schema
	 */
	private String command;

	/**
	 * Memento class constructor
	 * @param originalSchema Name of the original schema
	 * @param command Command applied over the original schema
	 */
	public Memento(String originalSchema, String command) {
		this.originalSchema = originalSchema;
		this.command = command;
	}

	/* (non-Javadoc)
	 * @see ro.dta.idbi.model.IMemento#getOriginalSchema()
	 */
	@Override
	public String getOriginalSchema() {
		return originalSchema;
	}

	/* (non-Javadoc)
	 * @see ro.dta.idbi.model.IMemento#getCommand()
	 */
	@Override
	public String getCommand() {
		return command;
	}
}
